﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;


namespace Agile.Models
{
    /// <summary>
	/// 多对多关系集中映射
	/// </summary>
    [Table("common_relevance")]
    [Description("多对多关系集中映射")]
    public partial class Relevance : Entity, ITenant, ISoftDelete
    {
        public Relevance()
        {
            Description = string.Empty;
            Key = string.Empty;
            Status = 0;
            OperateTime = DateTime.Now;
            OperatorId = string.Empty;
            FirstId = string.Empty;
            SecondId = string.Empty;
            ThirdId = string.Empty;
            ExtendInfo = string.Empty;
        }
        /// <summary>
        /// 所属租户
        /// </summary>
        [Description("所属租户")]
        public virtual string TenantId { get; set; }
        /// <summary>
        /// 软删除
        /// </summary>
        [Description("软删除")]
        public virtual int IsDelete { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Description("描述")]
        public string Description { get; set; }
        /// <summary>
        /// 映射标识
        /// </summary>
        [Description("映射标识")]
        public string Key { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Description("状态")]
        public int Status { get; set; }
        /// <summary>
        /// 授权时间
        /// </summary>
        [Description("授权时间")]
        public System.DateTime OperateTime { get; set; }
        /// <summary>
        /// 授权人
        /// </summary>
        [Description("授权人")]
        public string OperatorId { get; set; }
        /// <summary>
        /// 第一个表主键ID
        /// </summary>
        [Description("第一个表主键ID")]
        public string FirstId { get; set; }
        /// <summary>
        /// 第二个表主键ID
        /// </summary>
        [Description("第二个表主键ID")]
        public string SecondId { get; set; }
        /// <summary>
        /// 第三个主键
        /// </summary>
        [Description("第三个主键")]
        public string ThirdId { get; set; }
        /// <summary>
        /// 扩展信息
        /// </summary>
        [Description("扩展信息")]
        public string ExtendInfo { get; set; }

    }
}